<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>背景图固定</title>
  <style>
      body {
          background-image: url(./image/1.jpg);
          background-repeat: no-repeat;
          background-attachment: fixed;
      }
  </style>
</head>
<body>
<script>
  for (let i = 0; i <100; i++) {
    document.write("hello world!<br>")
  }
</script>
</body>
</html>